"To cancel the flight" means to stop or call off the scheduled airplane trip, so it will not happen as planned.